package com.hzjq.encrypt.util

import android.app.Activity
import android.content.Context
import android.view.View
import android.view.inputmethod.InputMethodManager

class KeyBoradX {

    companion object {
        fun hideKeyBoard(view: View) {
            val activity = view.context as Activity
            (activity.getSystemService(Context.INPUT_METHOD_SERVICE) as InputMethodManager)
                .hideSoftInputFromWindow(activity.getWindow().getDecorView().getWindowToken(), 0)
        }
    }
}